<!DOCTYPE html>
<!-- saved from url=(0047)http://web.hand999.com/daili_mobile/buygold.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>商户管理系统</title>
<meta name="Keywords" content="">
<meta name="Description" content="">

<meta http-equiv="Cache-Control" content="no-cache">
<meta name="MobileOptimized" content="240">

<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
  
  <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
  <meta content="no-cache" http-equiv="pragma">
  <meta content="0" http-equiv="expires">
  <meta content="telephone=no, address=no" name="format-detection">
  <meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Mobile Devices Support @end -->
<link rel="stylesheet" type="text/css" href="__CSS__/public.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
<script src="__JS__/jquery-2.1.0.min.js.下载"></script>
<script src="__JS__/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
	.user_list .t{width:50%;}
		media screen and (max-width: 480px){
	 .aa{ width:60px; height:60px;}
	 .bb{padding-left:70px; line-height:30px;}
	 }
	 .sou{
	   float: left;width: 45%;	
	 }
</style>
</head>

<body class="body" style="font-size:12px;">
	<div class="page_top_box">
    <center>
        <div class="page_top">
            <a href="<?php echo '__ROOT__/myadmin.html' ?>" class="back"><img src="__IMG__/ico_back.png"></a>

            <div class="pg_name" onclick="location.reload()"><?php if($_GET['accounts']==""){echo '代理买钻记录';}else{ echo $_GET['accounts'].'的购钻记录'; } ?></div>
			<!-- <a href="<?php echo '__ROOT__/buygold.html' ?>" class="add"><img src="__IMG__/shua.gif"></a> -->
        </div>
    </center>
    </div>
    <form id="myform" name="form1" method="post" action="">
			
		<div class="sousuo" style="height: 30px;margin: 20px 0 0 20px">

			<dl class="sou" >
				<b style="width:10%;">方式：</b>
				<select id="type" name="type" style="margin-top:3%;clear:both;">
					<option value="0" >全部</option>
					<option value="1" >微信扫码</option>
					<option value="2">赠送</option>

				</select>
			</dl class="sou" >
			
				购钻时间搜索
				<input type="text" class="Wdate" name="sdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="width:10%;height:18px;margin-top:6px;font-size:1px;"/>
				--
				<input type="text" class="Wdate" name="edate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="width:10%;height:18px;margin-top:6px;font-size:1px;"/>
				
		</div>
		<div>
				<input style="float:right;width:55px;height:25px;margin-right:10%;margin-top:2%;border-radius:9px;background:#FFF;color:#000;line-height:2px;" type="submit" name="soso" value="搜索" class="btn">
				</div>
		</form>
    <dl class="user_list">
		<dt style="width:20%;">充值ID</dt>
		<dt style="width:35%;" class="t">购钻时间</dt>
		<dt style="width:20%;">类型</dt>
		<dt style="width:20%;">钻石数量</dt>
    </dl>
		<?php  foreach ($sql as $k=>$v) { ?>		

    <dl id="ulist" class="user_list">
    	<dd style="width:20%;"><?php if($v['benefactor']==0){echo '官方充值';}elseif($v['benefactor']!=0){echo $v['benefactor'];} ?></dd>
		<dd style="width:35%;line-height:25px;" class="t"><?php echo $v['regtime']?></dd>
		<dd style="width:20%;">		
		<?php 	if ($v['manner']==1){	
				echo '官网购买'; 
				}
			if($v['manner']==2){
				echo '代理赠送';
				}
			if($v['manner']==3){
				echo '微信扫码';
				}				?>
		</dd>
		<dd style="width:20%;"><?php echo $v['gems'] ?></dd> 
	</dl>
	<?php } ?> 
    <div id="" smore="" class="list_more" onclick="showMore()">加载更多</div>
    <input id="cpage" name="cpage" type="hidden" value="1">
    <div class="pg_foot_box">
<center>
    <div class="pg_foot">
        <a href="<?php echo '__ROOT__/index.html' ?>">商户管理平台</a>
    </div>
</center>
</div>  
	<!-- <a href="#" onclick="goTop();return false;"><img style="width:60px;float:right" src="__IMG__/top.jpg"></a> -->
  
     <div id="hintbox" class="hint_box">
        <span id="hintmsg"></span>
    </div>
    <script src="__JS__/mui.min.js.下载"></script>
	<script src="__JS__/mui.picker.min.js.下载"></script>
    <script type="text/javascript">
	
function goTop(acceleration, time)
{ 
	acceleration = acceleration || 0.1; 
	time = time || 16; 
	 
	var x1 = 0; 
	var y1 = 0; 
	var x2 = 0; 
	var y2 = 0; 
	var x3 = 0; 
	var y3 = 0; 
	 
	if (document.documentElement) 
	{ 
		x1 = document.documentElement.scrollLeft || 0; 
		y1 = document.documentElement.scrollTop || 0; 
	} 
	if (document.body) 
	{ 
		x2 = document.body.scrollLeft || 0; 
		y2 = document.body.scrollTop || 0; 
	} 
	var x3 = window.scrollX || 0; 
	var y3 = window.scrollY || 0; 
	 
	// 滚动条到页面顶部的水平距离 
	var x = Math.max(x1, Math.max(x2, x3)); 
	// 滚动条到页面顶部的垂直距离 
	var y = Math.max(y1, Math.max(y2, y3)); 
	 
	// 滚动距离 = 目前距离 / 速度, 因为距离原来越小, 速度是大于 1 的数, 所以滚动距离会越来越小 
	var speed = 1 + acceleration; 
	window.scrollTo(Math.floor(x / speed), Math.floor(y / speed)); 
	 
	// 如果距离不为零, 继续调用迭代本函数 
	if(x > 0 || y > 0) { 
	var invokeFunction = "goTop(" + acceleration + ", " + time + ")"; 
	window.setTimeout(invokeFunction, time); 
	} 
} 
	
	
		$("#seabtn").click(function(){
			$("#seabox").slideToggle();
		});
		
		function a(){
		var a = document.getElementById("a");
		a.selected="selected";
		}
		function goSearch(){
			if($("#sdate").val() == "" && $("#edate").val() == ""){
				hintPop("请输入开始和结束日期！"); return false;
			}
			
			window.location.href="?sdate=" + $("#sdate").val() + "&edate=" + $("#edate").val();
		}
		
		function hintPop(msg){
			$("#hintmsg").html(msg);
			$("#hintbox").css({"opacity": "1", "display": "block"});
			$("#hintbox").animate({"bottom":"80px"}, "last", function(){
				setTimeout(function(){
					$("#hintbox").animate({"opacity": "0"}, "last", function(){
						$("#hintbox").css({"bottom":"0px", "display": "none"});
					});
				}, 2000);
			});
		}
		
		function showMore(){
			var total = Number("1");
			var cpage = Number($("#cpage").val());
			if(cpage >= total){
				hintPop("没有更多充钻记录了"); return false;
			}else{
				$.ajax({
					type: "get",
					url: "prog.php?ac=ajax.class&do=buygold",
					data: {"pset": "15","cpage": cpage, "sdate":"0", "edate":"1482822398"},
					success: function (result) {
						$("#ulist").append(result);
						$("#cpage").val(cpage + 1);
						
					}
				});
			}
		}
		
		(function($) {
			$.init();
			var result = $('#result')[0];
			var btns = $('.picker');
			btns.each(function(i, btn) {
				btn.addEventListener('tap', function() {
					var optionsJson = this.getAttribute('data-options') || '{}';
					var options = JSON.parse(optionsJson);
					var id = this.getAttribute('id');
		
					var picker = new $.DtPicker(options);
					picker.show(function(rs) {
						
						document.getElementById(id).value = rs.text;
												
						picker.dispose();
					});
				}, false);
			});
		})(mui);
	</script>

</body></html> 